package com.yy.service;

import com.yy.pojo.Article;
import com.yy.pojo.PageBean;
import com.yy.pojo.vo.ArticleVo;

import java.util.List;

public interface ArticleService {
    //新增文章
    void add(Article article);

    void update(Article article);
//条件分页列表查询
    PageBean<ArticleVo> list(Integer pageNum, Integer pageSize, Integer categoryId, String state);

    void deleteArticle(Integer id);

    List<ArticleVo> listAll(Integer categoryId, String state, String title);
}
